<div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="demo">
        <li class="layui-nav-item layui-nav-itemed">
          <a href="javascript:;">默认展开</a>
          <dl class="layui-nav-child">
          <?php
    
            $re=$pdo->query("select * from article_kind order by id");
            $re->setFetchMode(PDO::FETCH_ASSOC);
            $res=$re->fetchALL();
            foreach($res as $val){
                ?>
                  <dd><a href="index.php?id=<?php echo $val["id"]?>"><?php echo $val['king']?></a></dd>
                 <?php 
                }
                  ?>  
                  <!-- <dd><a href="index-two.php">选项二</a></dd>
            <dd><a href="index-three.php">选项三</a></dd>
            <dd><a href="index-four.php">选项四</a></dd>
            <dd><a href="index-five.php">选项五</a></dd>
            <dd><a href="index-six.php">选项六</a></dd> -->
          </dl>
        </li>  
      </ul>
    </div>